package priv.books.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author Kris He
 * @date 2022/05/11 15:04
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailInfo extends OrderDetail{

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField(value = "order_num")
    private String orderNum;

    /**
     * 订单价格
     */
    @TableField(value = "order_price")
    private BigDecimal orderPrice;

}
